package com.online_vote_system.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.online_vote_system.demo.vo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("select * from admin WHERE admin_name=#{adminName} AND admin_pass=#{adminPass}")
    Admin LoginTest(String adminName,String adminPass);

    @Select("select * from admin")
    List<Admin> getAllAdmin();
}
